equations with three variables